import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { FileService } from './file.service';
import { FileController } from './file.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { PaginationModule } from '../../common/pagination/pagination.module';
import { PaginationService } from '../../common/pagination/pagination.service';
import { File } from './entities/file.entity';

@Module({
  imports: [
      TypeOrmModule.forFeature([File]),
      PaginationModule,
      PaginationService,
      ConfigModule
    ],
  controllers: [FileController],
  providers: [FileService],
  exports: [FileService]
})
export class FileModule {}
